export const actions={
    changeInfo({commit},obj){
         //如果存，obj={token:"",username:"",id:""}  删除obj={}

         //修改
         commit("changeInfo",obj);
             //存本地
             if(obj.token){
                 sessionStorage.setItem("info",JSON.stringify(obj))
             }else{
                 sessionStorage.removeItem("info")
             }
         
    }
}